package com.sk.photo_album;

import java.io.Serializable;

public class MediaInfo implements Serializable {

    private Media type;
    private String name;
    private String path;
    private String album;
    private Long duration;

    private boolean checked;

    public MediaInfo() {
    }

    public MediaInfo(String path, String name, String album) {
        this.type = Media.MEDIA_TYPE_IMAGE;
        this.path = path;
        this.name = name;
        this.album = album;
    }

    public MediaInfo(String path, String name, String album, Long duration) {
        this.type = Media.MEDIA_TYPE_VIDEO;
        this.path = path;
        this.name = name;
        this.album = album;
        this.duration = duration;
    }

    public Media getType() {
        return type;
    }

    public void setType(Media type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getAlbum() {
        return album;
    }

    public void setAlbum(String album) {
        this.album = album;
    }

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }
}
